<template>
    <div class="hot">
        <div class="hot-top">
            <div class="imgtext">
                <img src="http://img1.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png">
                <span>本周热门榜单</span>
            </div>
            <span>全部榜单 ></span>
        </div>
        <ul class="hot-list">
            <li class="hot-item" v-for="item in hotList" :key="item.id">
                <img :src="item.imgUrl" alt="">
                <p>{{item.title}}</p>
                <p>
                    <span class="hot-mark">￥{{item.mark}}</span>起
                </p>
            </li>
        </ul>
    </div>
</template>

<script>
export default {
    props:['hotList'],
    data(){
        return{
            
        }
    }
}
</script>

<style scoped>
.hot{
    margin-top: 10px;
    background-color: #fff;
}
.hot-top{
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content:space-between;
    align-items: center;
    
}
.hot-top .imgtext{
    display: flex;
    align-items: center;
}
.hot-list{
    display: flex;
    text-align: center;
    font-size: 14px;
    overflow-y: hidden;
}
.hot-list img{
    width: 80px;
    height: 80px;
}
.hot-list  .hot-item{
    width: 22%;
    padding: 5px;
}
.hot-list  .hot-item p{
    margin-top: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.hot-list  .hot-item p .hot-mark{
    color: rgb(218, 199, 30);
}
</style>